The Runabout

نویسنده

  • Christian Grothoff
چکیده

This paper presents a variation of the visitor pattern which allows programmers to write visitor-like code in a concise way. The Runabout is a library extension that adds a limited form of multi-dispatch to Java. While the Runabout is not as expressive as a general multiple dispatching facility, the Runabout can be significantly faster than existing implementations of multiple dispatch for Java, such as MultiJava. Unlike MultiJava, the Runabout does not require changes to the syntax and the compiler. This paper illustrates how to use the Runabout, details its implementation, and provides benchmarks comparing its performance with other approaches. Furthermore, the effect of an automatic static program transformation tool that translates bytecode using the Runabout to equivalent bytecode is evaluated. The tool uses double dispatch and runtime type checks to achieve the same semantics that the Runabout has. The performance comparisons on large benchmarks that make extensive use multiple dispatch show that using the Runabout does not result in a significant loss of performance for realistic applications and that, depending on the application and platform, small performance gains are also possible.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Frege’s correlation

Dummett, M. 1991. Logical Basis of Metaphysics. London: Duckworth. Gentzen, G. 1969. Untersuchungen über das logische Schliessen. In The Collected Papers of Gerhard Gentzen, tr. M. Szabo, 68–131. Amsterdam: North-Holland. Prawitz, D. 1977. Meaning and proofs: on the conflict between intuitionistic and classical logic. Theoria. 43: 2–40. Prior, A. 1960–61. The Runabout inference ticket. Analysis...

متن کامل

Should family physicians accept gifts from patients?

I think it is safe to say that most family physicians have received gifts from patients, even if it was only a box of chocolates, an apple pie, or a bottle of wine. Although only 20% of physicians say they have received gifts,1 it would not surprise me if the opposite were true. Indeed, it is unusual for a family physician not to have accepted gifts of some kind. In fact, several codes of ethic...

متن کامل

Phenotypic Correlation between Some Nurserphelogical Traits among 60 Cultivars and the Genotypes of Almond

This research was carried out for evaluating phenotypic diversity and traits correlation in 60 almond genotypes and cultivars in nursery conditions. After preparation land and the bitter seeds of Shahroud22 genotype as seedling rootstocks planted in the autumn 2005. After the seed germination in the spring of the next year, the results of recorded data in 3rd may of 2006 showed that the planted...

متن کامل

The impact of the flood spreading project on the villagers on the edge of the aquifer (A case study: Ahram Bushehr flood spreading station)

The current research was conducted with the aim of evaluating the effects of the flood spreading project on the aquifer from the perspective of the villagers living on the edge of the project. The flood spreading plan on the aquifer has been implemented since 1995 on the level of 1259 ha of land in Tangestan city in Bushehr province in the form of the Kausar 3 research and extension training st...

متن کامل

The typology of approaches to the science of the interrelatedness of the qur’ānic chapters

The present article addresses the typology of the approaches to the science of the interrelatedness of the qur’ānic chapters. To this end, this science has been bought under typological analyses from the viewpoints of the past and contemporary scholars. In the approaches of the past scholars, topics such as the narrative origins and the backgrounds of this science, the chainlike relationship be...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Softw., Pract. Exper.

دوره 38  شماره 

صفحات  -

تاریخ انتشار 2008